Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@pixi-essentials/cull
Advanced tools
This package provides an optimized, highly configurable culling mechanism.
npm install @pixi-essentials/cull
If display-object's in your scene graph do not change each frame, then you can run culling whenever your display-object's move or your scene graph changes.
import { Application } from 'pixi.js';
import { Cull } from '@pixi-essentials/cull';
import { Viewport } from 'pixi-viewport';
const app = new Application({ });
const renderer = app.renderer;
const viewport = initScene(new Viewport());
const cull = new Cull().addAll(viewport.children);
// Flags whether culling, should be set "true" when a child is added to the viewport's subtree.
let cullDirty = false;
viewport.on('frame-end', function() {
if (viewport.dirty || cullDirty) {
cull.cull(renderer.screen);
viewport.dirty = false;
cullDirty = false;
}
})
If your scene graph is dynamic and/or changes across frames cannot be tracked, you can run culling
on the prerender
event.
renderer.on('prerender', () => {
cull.cull(renderer.screen);
})
If you are rendering multiple panes on to the canvas, each with its own scene graph, using different projections, then you need to use separate culls for each scene graph.
cull.cull(sourceFrame);
FAQs
Optimized recursive display-object culling for scene graphs
The npm package @pixi-essentials/cull receives a total of 1,922 weekly downloads. As such, @pixi-essentials/cull popularity was classified as popular.
We found that @pixi-essentials/cull demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.